package com.example.common.response;

/**
 * 失败响应
 */
public class FailureResponse {
    private Result result;

    public FailureResponse() {
        result = new Result();
        result.setCode(1);
        result.setMessage("失败");
    }

    public FailureResponse(String errorMessage) {
        result = new Result();
        result.setCode(1);
        result.setMessage(errorMessage);
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public void setErrorMessage(String errorMessage) {
        this.result.setMessage(errorMessage);
    }
}
